import request from "@/utils/request";

export function getvotelist(data) {
  return request({
    url: "/vote",
    method: "get",
    params: data
  });
}

export function postvotelist(data) {
  return request({
    url: "/vote",
    method: "post",
    data
  });
}

export function putvotelist(data) {
  return request({
    url: "/vote",
    method: "put",
    data
  });
}

export function deletevotelist(data) {
  return request({
    url: "/vote",
    method: "delete",
    data
  });
}

export function UPVOTE_IMG(data) {
  return request({
    url: "/uploadImagevote",
    method: "post",
    data
  });
}

export function PUT_VOTE_IMG(data) {
  return request({
    url: "/put_voteImageTests",
    method: "post",
    data
  });
}

export function deletevoteDetail(data) {
  return request({
    url: "/voteDetail",
    method: "delete",
    data
  });
}
